<?php

namespace srvs\web;
use yii\web\Controller;
class BackendController extends Controller
{
    function beforeAction($action)
    {
        if( \Yii::$app->user->isGuest ) {
            $this->goHome();
            return false;
        }
        else
            return true;
    }


}
